<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use App\Models\JuBao;

class JuBaoController extends Controller
{

    public function savejubao(Request $request)
    {

        $title = $request->title;
        $neirong = $request->neirong;

        $jubao = new JuBao();

        $jubao->title = $title;
        $jubao->neirong = $neirong;
        $jubao->created_time = time();

        $jubao->save();

        return "举报的内容已经提交成功，请等待管理员处理。";
    }

}
